package org.btik.light.meta.base;

import java.nio.charset.StandardCharsets;

/**
 * @author lustre
 * @version 1.0
 * @since 2021/5/15 12:37
 */
public interface CmdCode {
    String DEV_SN = "SN";

    String OP_CODE = "OP_CODE";

    String PRAMS = "PARAMS";

    char CARRIAGE_RETURN = '\r';
    byte NEW_LINE = '\n';
    byte COLON = ':';
    byte[][] RPC_END = new byte[][]{new byte[]{CARRIAGE_RETURN, NEW_LINE, CARRIAGE_RETURN, NEW_LINE},
            new byte[]{NEW_LINE, NEW_LINE}
    };
    byte[] HELLO = "hello".getBytes(StandardCharsets.UTF_8);

    char TYPE_STRING = 's';
    char TYPE_BYTE = 'b';

    String STATUS = "status";
    String MSG = "msg";

    int STATUS_OK = 0;
    int STATUS_ERROR = 1;
    int STATUS_UNKNOWN = 2;


}
